﻿@model NUS.ISS.ARS.BusinessEntity.ViewModels.CancelBookingTripView
@{
    ViewBag.Title = "CancelBooking Delete";
}

<h2>Delete</h2>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
      <legend>Delete Booking</legend>
             
        <table>
            <tr>

                <th>
                    @Html.DisplayNameFor(model => Model.ReferenceNumber)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.FlightNumber)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.FlightDate)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.FromAirport)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.DepartureTime)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.ArrivalTime)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.ToAirport)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.CustomerName)
                </th>
                <th>
                    @Html.DisplayName("PassengerName")
                </th>

            </tr>

                @foreach (var item in Model.flightbookingviews) {
      
                          Html.RenderPartial("CancelBookingResult", item);
                }

                </table> 


  @Html.HiddenFor(model => model.FlightBookingId)


        <h3>Are you sure you want to delete this?</h3>
        <p>
            <input type="submit" value="Delete" />
        </p>
    </fieldset>
    }
<div>
    @Html.ActionLink("Back to List", "CancelBooking")
</div>

 @Styles.Render("~/Content/cancelbooking.css")

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
